package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.domains.AppResult;
import cn.imvc.app.entities.Account;
import cn.imvc.data.domain.ViewRequest;

public interface AccountModel{
	Page<Account> find(ViewRequest viewRequest);

	Account get(int id);

	Account save(Account entity);

	Account update(Account entity);

	void delete(int id);

	void deleteBatch(int[] ids);	
	
	boolean checkPayPw(Account account, String password);
	
	void checkAccount(Account account) ; 
	
	void retrySaveAccount(Integer accountId, Integer money,Integer commissions,Integer points);
	
}